package com.SingleSeckill.service;


import com.SingleSeckill.error.BusinessException;
import com.SingleSeckill.service.model.UserModel;

public interface UserService {

    //通过用户id获取用户对象
    UserModel getUserById(Integer id);

    //注册
    void register(UserModel userModel) throws BusinessException;

    //校验用户登录合法性，注意传入的为加密的密码
    UserModel validateLogin(String telphone, String encrptPassword) throws BusinessException;

}
